package simulation;

import java.io.IOException;
import java.text.DecimalFormat;   
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Map.Entry;

import streaming.StreamingConfig;


public class Test {

	// --------------------
	// CONSTRUTOR
	// --------------------
	
	public Test() {
	}
	
	// --------------------
	// MAIN
	// --------------------
	
	public static void main(String[] args) throws IOException {
		
		// System.out.println(   Util.to_char( Util.sysdate() )  );
		// System.out.println(   Util.to_char( Util.sysdate(), "dd/MM/yyyy" )  );
		
//		double vTemp = 0;
//		System.out.println(   Util.to_char(vTemp, 2)    );

//
//		double x = 1234.1;
//		int precision = 2;
//
//		String strPower = "";
//		String strPrecision = "";
//		String strResultTemp = "";
//		String strResult = "";
//		
//		strPower = ""+(int)Math.pow(10,precision);
//		strPrecision = strPower.substring(1,strPower.length());
//		strPrecision = "0." + strPrecision;
//		DecimalFormat fmt = new DecimalFormat(strPrecision);
//		strResultTemp = fmt.format(x);  
//		strResult = strResultTemp.replace("," , ".");
//		
//		System.out.println( "["+ strResult +"]" );
//		System.out.println( "["+ Util.to_char(x,precision) +"]" );

		
		Collection<Integer> neighborIdsToBlack;
		
		neighborIdsToBlack = new HashSet<Integer>();
		neighborIdsToBlack.add(101);
		neighborIdsToBlack.add(103);
		neighborIdsToBlack.add(104);
		neighborIdsToBlack.add(107);
		neighborIdsToBlack.add(109);

		// Monta a lista dos IDs
		Iterator<Integer> it = neighborIdsToBlack.iterator();
		while (it.hasNext() ) {
			Integer val = it.next();
			
			System.out.println( val );

		}

//		for (int i=1; i<= neighborIdsToBlack.size(); i++) {
//			System.out.println( neighborIdsToBlack(i) );
//		}
		

		

	}

}


